package cn.demographic.entity;

import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

import cn.demographic.util.FamtDate;

public class User {
    private Integer id;

    private String name;

    private String formername;

    private Integer gender;

    private Date localtime;

    private String citizenshipnumber;

    private String national;

    private String fixedtelephone;

    private String mobilephone;

    private String password;

    private Integer livehouseholdid;

    private Integer livenowid;

    private Integer cultureid;

    private String emergencycontact;

    private String emergencycontactfixedtelephone;

    private String emergencycontactmobilephone;

    private Integer faceid;

    private Integer religiousid;

    private Integer height;

    private Double weight;

    private Integer bloodtypeid;

    private Integer healthid;

    private Integer workingconditionsid;

    private Integer maritalstatusid;

    private String enterUser;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date enterTime;
    private String entertime;
    
    private Live live;						//地址
    
    private Live live2;						//地址
    
	private	Culture culture;				//文化
    
    private Face face;						//政治面貌
    
    private Religious religious;			//宗教信仰
    
    private Bloodtype bloodtype;			//血型
    
    private Health health;					//健康状况
    
    private Workingconditions workingconditions;		//从业状况
    
    private Maritalstatus maritalstatus;				//婚姻状况
    
    private Spouse spouse;								//配偶信息
    
    private List<Family> family;						//家庭同住关系
    
    private Marriage marriage;							//计生信息
    
    private Livinginformation livinginformation;		//居住信息
    
    public Live getLive() {
		return live;
	}

	public void setLive(Live live) {
		this.live = live;
	}

	public Culture getCulture() {
		return culture;
	}

	public void setCulture(Culture culture) {
		this.culture = culture;
	}

	public Face getFace() {
		return face;
	}

	public void setFace(Face face) {
		this.face = face;
	}

	public Religious getReligious() {
		return religious;
	}

	public void setReligious(Religious religious) {
		this.religious = religious;
	}

	public Bloodtype getBloodtype() {
		return bloodtype;
	}

	public void setBloodtype(Bloodtype bloodtype) {
		this.bloodtype = bloodtype;
	}

	public Health getHealth() {
		return health;
	}

	public void setHealth(Health health) {
		this.health = health;
	}

	public Workingconditions getWorkingconditions() {
		return workingconditions;
	}

	public void setWorkingconditions(Workingconditions workingconditions) {
		this.workingconditions = workingconditions;
	}

	public Maritalstatus getMaritalstatus() {
		return maritalstatus;
	}

	public void setMaritalstatus(Maritalstatus maritalstatus) {
		this.maritalstatus = maritalstatus;
	}

	public Spouse getSpouse() {
		return spouse;
	}

	public void setSpouse(Spouse spouse) {
		this.spouse = spouse;
	}

	public List<Family> getFamily() {
		return family;
	}

	public void setFamily(List<Family> family) {
		this.family = family;
	}

	public Marriage getMarriage() {
		return marriage;
	}

	public void setMarriage(Marriage marriage) {
		this.marriage = marriage;
	}

	public Livinginformation getLivinginformation() {
		return livinginformation;
	}

	public void setLivinginformation(Livinginformation livinginformation) {
		this.livinginformation = livinginformation;
	}

	/**
     * 审核状态与用户对应关系
     */
    private Applicanttable applicanttable;
    /**
     * 就业信息关系表
     */
    private Employment employment;

    public Employment getEmployment() {
		return employment;
	}

	public void setEmployment(Employment employment) {
		this.employment = employment;
	}

	public String getEntertime() {
		return FamtDate.fordate(enterTime);
	}

	public void setEntertime(String entertime) {
		this.entertime = entertime;
	}

	public Applicanttable getApplicanttable() {
		return applicanttable;
	}

	public void setApplicanttable(Applicanttable applicanttable) {
		this.applicanttable = applicanttable;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getFormername() {
        return formername;
    }

    public void setFormername(String formername) {
        this.formername = formername == null ? null : formername.trim();
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Date getLocaltime() {
        return localtime;
    }

    public void setLocaltime(Date localtime) {
        this.localtime = localtime;
    }

    public String getCitizenshipnumber() {
        return citizenshipnumber;
    }

    public void setCitizenshipnumber(String citizenshipnumber) {
        this.citizenshipnumber = citizenshipnumber == null ? null : citizenshipnumber.trim();
    }

    public String getNational() {
        return national;
    }

    public void setNational(String national) {
        this.national = national == null ? null : national.trim();
    }

    public String getFixedtelephone() {
        return fixedtelephone;
    }

    public void setFixedtelephone(String fixedtelephone) {
        this.fixedtelephone = fixedtelephone == null ? null : fixedtelephone.trim();
    }

    public String getMobilephone() {
        return mobilephone;
    }

    public void setMobilephone(String mobilephone) {
        this.mobilephone = mobilephone == null ? null : mobilephone.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Integer getLivehouseholdid() {
        return livehouseholdid;
    }

    public void setLivehouseholdid(Integer livehouseholdid) {
        this.livehouseholdid = livehouseholdid;
    }

    public Integer getLivenowid() {
        return livenowid;
    }

    public void setLivenowid(Integer livenowid) {
        this.livenowid = livenowid;
    }

    public Integer getCultureid() {
        return cultureid;
    }

    public void setCultureid(Integer cultureid) {
        this.cultureid = cultureid;
    }

    public String getEmergencycontact() {
        return emergencycontact;
    }

    public void setEmergencycontact(String emergencycontact) {
        this.emergencycontact = emergencycontact == null ? null : emergencycontact.trim();
    }

    public String getEmergencycontactfixedtelephone() {
        return emergencycontactfixedtelephone;
    }

    public void setEmergencycontactfixedtelephone(String emergencycontactfixedtelephone) {
        this.emergencycontactfixedtelephone = emergencycontactfixedtelephone == null ? null : emergencycontactfixedtelephone.trim();
    }

    public String getEmergencycontactmobilephone() {
        return emergencycontactmobilephone;
    }

    public void setEmergencycontactmobilephone(String emergencycontactmobilephone) {
        this.emergencycontactmobilephone = emergencycontactmobilephone == null ? null : emergencycontactmobilephone.trim();
    }

    public Integer getFaceid() {
        return faceid;
    }

    public void setFaceid(Integer faceid) {
        this.faceid = faceid;
    }

    public Integer getReligiousid() {
        return religiousid;
    }

    public void setReligiousid(Integer religiousid) {
        this.religiousid = religiousid;
    }

    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public Integer getBloodtypeid() {
        return bloodtypeid;
    }
    public Live getLive2() {
		return live2;
	}

	public void setLive2(Live live2) {
		this.live2 = live2;
	}
    public void setBloodtypeid(Integer bloodtypeid) {
        this.bloodtypeid = bloodtypeid;
    }

    public Integer getHealthid() {
        return healthid;
    }

    public void setHealthid(Integer healthid) {
        this.healthid = healthid;
    }

    public Integer getWorkingconditionsid() {
        return workingconditionsid;
    }

    public void setWorkingconditionsid(Integer workingconditionsid) {
        this.workingconditionsid = workingconditionsid;
    }

    public Integer getMaritalstatusid() {
        return maritalstatusid;
    }

    public void setMaritalstatusid(Integer maritalstatusid) {
        this.maritalstatusid = maritalstatusid;
    }

    public String getEnterUser() {
        return enterUser;
    }

    public void setEnterUser(String enterUser) {
        this.enterUser = enterUser == null ? null : enterUser.trim();
    }

    public Date getEnterTime() {
        return enterTime;
    }

    public void setEnterTime(Date enterTime) {
        this.enterTime = enterTime;
    }

	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", formername=" + formername + ", gender=" + gender
				+ ", localtime=" + localtime + ", citizenshipnumber=" + citizenshipnumber + ", national=" + national
				+ ", fixedtelephone=" + fixedtelephone + ", mobilephone=" + mobilephone + ", password=" + password
				+ ", livehouseholdid=" + livehouseholdid + ", livenowid=" + livenowid + ", cultureid=" + cultureid
				+ ", emergencycontact=" + emergencycontact + ", emergencycontactfixedtelephone="
				+ emergencycontactfixedtelephone + ", emergencycontactmobilephone=" + emergencycontactmobilephone
				+ ", faceid=" + faceid + ", religiousid=" + religiousid + ", height=" + height + ", weight=" + weight
				+ ", bloodtypeid=" + bloodtypeid + ", healthid=" + healthid + ", workingconditionsid="
				+ workingconditionsid + ", maritalstatusid=" + maritalstatusid + ", enterUser=" + enterUser
				+ ", enterTime=" + enterTime + ", entertime=" + entertime + ", applicanttable=" + applicanttable
				+ ", employment=" + employment + "]";
	}
    
}